package cn.edu.jmu.oelp.service;

import cn.edu.jmu.oelp.pojo.EntityRelation;

import java.util.List;

public interface EntityRelationNeo4jService {

    public EntityRelation addRelation(EntityRelation entityRelation);

    public void delRelation(Long relationId);

    public void updateRelation(EntityRelation entityRelation);

    public List<EntityRelation> findAll();

    public EntityRelation findById(long id);

    public List<EntityRelation> findByStartEntityId(long id);

    public List<EntityRelation> findByEndEntityId(long id);

    public List<EntityRelation> findByType(String type);

    public List<EntityRelation> findByStartEntityIdAndEndEntityId(long startEntityId, long endEntityId);

    public EntityRelation findByStartEntityIdAndEndEntityIdAndType(long startEntityId, long endEntityId, String type);
}
